home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / doom / quake3.zip / FLASHLT2.ZIP / MKTRAN.C < prev    next >
C/C++ Source or Header  |  1996-08-22  |  575b  |  33 lines

  1. // A short program which outputs the transparent sprite I use
  2.  
  3. void putl(long l) {
  4.     putchar(l);
  5.     putchar(l>>8);
  6.     putchar(l>>16);
  7.     putchar(l>>24);
  8. }
  9.  
  10. main() {
  11.     putchar('I');
  12.     putchar('D');
  13.     putchar('S');
  14.     putchar('P');
  15.     putl(1); // version
  16.     putl(2); // type
  17.     putl(0); // bounding radius
  18.     putl(1); // max width
  19.     putl(1); // max height
  20.     putl(1); // Number of frames
  21.     putl(0); // "float beamlength"
  22.     putl(0); // synchronousA
  23.  
  24.     putl(0); // Single frame picture
  25.     
  26.     putl(0); // offsx
  27.     putl(0); // offsy
  28.     putl(1); // width
  29.     putl(1); // height
  30.     putchar(0xff); //transparent pixel
  31. };
  32.  
  33.